#!/usr/bin/env python
'''3.1) Write a program that asks users for their favourite color. 
Create the following output (assuming "red" is the chosen color). 
Use "+" and "*".

red red red red red red red red red red  
red                                 red
red                                 red
red red red red red red red red red red'''

# http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
class bcolors:
    HEADER = '\033[95m'
    OKBLUE = '\033[94m'
    OKGREEN = '\033[92m'
    WARNING = '\033[93m'
    FAIL = '\033[91m'
    ENDC = '\033[0m'

    def disable(self):
        self.HEADER = ''
        self.OKBLUE = ''
        self.OKGREEN = ''
        self.WARNING = ''
        self.FAIL = ''
        self.ENDC = ''

color = input("Geef een kleur: ")
repeat = 10
top = bcolors.OKBLUE + (color + " ")* repeat + bcolors.ENDC
white = ((len(color)*" ")+" ") * (repeat-2)

mid = bcolors.OKGREEN + color + " " + white + color + bcolors.ENDC
print(top)
print(mid)
print(mid)
print(top)
